all: all-libs
install: install-libs
uninstall: uninstall-libs
doc: doc-libs
clean: clean-libs
dist-clean: dist-clean-libs

COMPILED_LIBS = \
	lib/clock/system$(SO)
SCM_LIBS = \
	lib/clock/system.sld \
	lib/clock/tai-to-utc-offset.sld \
	lib/clock/tai.sld \
	lib/my-scheme/time.sld

XCPPFLAGS += -I$(PREFIX)/include
XCFLAGS += -Wall -L$(PREFIX)/lib

include Makefile.libs

TESTS	= \
	tests/clock/leap-seconds.scm \
	tests/clock/leap-seconds-list.scm \
	tests/clock/system.scm \
	tests/clock/tai-to-utc-offset.scm \
	tests/clock/tai.scm \
	tests/my-scheme/time.scm

test:
	for test in $(TESTS) ; do chibi-scheme -I lib $$test; done

benchmarks:
	sh benchmarks/benchmarks.sh
